//
//  UIButton+Custom.m
//  TradeCircle
//
//  Created by SHERMAN on 2017/7/6.
//  Copyright © 2017年 sherman. All rights reserved.
//

#import "UIButton+Custom.h"

@implementation UIButton (Custom)

+ (instancetype)buttonWithTarget:(id)target
                             sel:(SEL)action
                           title:(NSString *)title
{
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
    [btn setTitle:title forState:UIControlStateNormal];
    [btn setTitleColor:COLOR(.0f, .0f, .0f, 4) forState:UIControlStateNormal];
    btn.titleLabel.font = [UIFont systemFontOfSize:15.0f];
    //[btn setBackgroundColor:RAND_COLOR];
    return btn;
}





@end
